﻿using Abp.AutoMapper;
using Batman.Cms.Domains;
using System.ComponentModel.DataAnnotations;

namespace Batman.Cms.Controllers.Weixins.Input
{
    [AutoMap(typeof(QrCode))]
    public class CreateQrCodeInput
    {
        [Display(Name = "名称")]
        public string Name { get; set; }

        /// <summary>
        /// 微信公众号Id
        /// </summary>
        [Display(Name = "微信公众号")]
        [UIHint("WeixinMp")]
        public int WeixinMpId { get; set; }

        /// <summary>
        /// 参数
        /// </summary>
        [Required(ErrorMessage = "请设置参数")]
        [Display(Name = "二维码参数")]
        public string ActionInfo { get; set; }

        [Display(Name = "二维码类型")]
        public QrCodeType Type { get; set; }

        [Display(Name = "过期时间(秒)")]
        public int? ExpiredSeconds { get; set; }
    }
}
